﻿//---------------------------------------------------------------------------------
// Copyright 2011 Microsoft Corporation
// Licensed under the Microsoft Public License (MS-PL) (the "License"); 
// You may not use this file except in compliance with the License. 
// You may obtain a copy of the License at http://www.opensource.org/licenses/ms-pl.html
// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR 
// CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, 
// INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR 
// CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 
// MERCHANTABLITY OR NON-INFRINGEMENT. 
// See the Microsoft Public License (MS-PL) for the specific language governing 
// permissions and limitations under the License.
//---------------------------------------------------------------------------------
using System.Windows;
using System.Windows.Controls;

namespace Microsoft.Telco.Controls
{
    /// <summary>
    /// The ReplyByVoiceControl control
    /// </summary>
    
    #region Parts and States Model Declarations

    [TemplatePart(Name = "RootElement", Type = typeof(FrameworkElement))]
    [TemplatePart(Name = "ControlBorder", Type = typeof(Border))]

    #endregion

    public class ReplyByVoiceControl : TelcoControlBase
    {

        #region Parts

        private FrameworkElement RootElement { get; set; }

        private Border ControlBorderElement { get; set; }

        #endregion

        /// <summary>
        /// Constructor for ReplyByVoiceControl
        /// </summary>
        public ReplyByVoiceControl()
        {
            DefaultStyleKey = typeof(ReplyByVoiceControl);

        }

        #region Initialization

        /// <summary>
        /// Virtual method to be override on the base class
        /// </summary>
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            this.RootElement = base.GetTemplateChild("RootElement") as FrameworkElement;
            ControlBorderElement = GetTemplateChild("ControlBorder") as Border;

        }

        #endregion  
    }
}
